package com.example.xianzhi.service.impl;

import com.example.xianzhi.dao.UserDao;
import com.example.xianzhi.dao.impl.UserDaoImpl;
import com.example.xianzhi.entity.TbUser;
import com.example.xianzhi.service.UserSercive;

import java.util.List;

public class UserSerciveImpl implements UserSercive {
    private UserDao userDao = new UserDaoImpl();

    @Override
    public TbUser selectUser(int user_id) {
        return userDao.selectUser(user_id);
    }

    @Override
    public List<TbUser> selectuserss(String wx_nick, String wx_address, int user_credit) {
        return userDao.selectuserss(wx_nick,wx_address,user_credit);
    }

    @Override
    public TbUser selectUser(String wx_open_id) {
        return userDao.selectUser(wx_open_id);
    }

    @Override
    public void insertUser(String wx_open_id, String wx_nick, String wx_head, String wx_address, String user_num, double user_credit, int user_money, String uesr_add) {
        userDao.insertUser(wx_open_id,wx_nick,wx_head,wx_address,user_num,user_credit,user_money,uesr_add);
    }
}
